package com.wzu.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wzu.entity.Menu;
import com.wzu.mapper.MenuMapper;
import com.wzu.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements MenuService {
    
    @Autowired
    private MenuMapper menuMapper;
    
    @Override
    public Menu getMenuByUserId(String userid) {
        return menuMapper.getMenuByUserId(userid);
    }
    
    @Override
    public boolean updateMenu(Menu menu) {
        return menuMapper.updateMenu(menu) > 0;
    }
} 